{extend name="iframe" /}

{block name="body"}
<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
    <form action="{:request()->url()}" method="post" class="xn_ajax" data-type="open">
        <div class="layui-form-item">
            <label class="layui-form-label">站点类型</label>
            <div class="layui-input-block">
                <select name="typeid">
                    <option value="0">请选择</option>
                    {foreach name="typelist" item="vo"}
                    <option value="{$vo.id}" {if $data.typeid==$vo.id}selected{/if}>{$vo.title}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">站点名称</label>
            <div class="layui-input-block">
                <input type="text" name="title" lay-verify="required" placeholder="" autocomplete="off" class="layui-input" value="{$data.title}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">URL</label>
            <div class="layui-input-block">
                <input type="text" name="url" lay-verify="required" placeholder="" autocomplete="off" class="layui-input" value="{$data.url}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">数据库类型</label>
            <div class="layui-input-block">
                <select name="db_type">
                    <option value="">请选择</option>
                    <option value="mysql" {if $data.db_type=='mysql'}selected{/if}>mysql</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">数据库主机</label>
            <div class="layui-input-block">
                <input type="text" name="db_hostname" lay-verify="" placeholder="" autocomplete="off" class="layui-input" value="{$data.db_hostname}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">数据库端口</label>
            <div class="layui-input-block">
                <input type="text" name="db_hostport" lay-verify="" placeholder="" autocomplete="off" class="layui-input" value="{$data.db_hostport}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">数据库名称</label>
            <div class="layui-input-block">
                <input type="text" name="db_database" lay-verify="" placeholder="" autocomplete="off" class="layui-input" value="{$data.db_database}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">数据库用户</label>
            <div class="layui-input-block">
                <input type="text" name="db_username" lay-verify="" placeholder="" autocomplete="off" class="layui-input" value="{$data.db_username}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">数据库密码</label>
            <div class="layui-input-block">
                <input type="text" name="db_password" lay-verify="" placeholder="" autocomplete="off" class="layui-input" value="{$data.db_password}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">数据表前缀</label>
            <div class="layui-input-block">
                <input type="text" name="db_prefix" lay-verify="" placeholder="" autocomplete="off" class="layui-input" value="{$data.db_prefix}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">CMS类型</label>
            <div class="layui-input-block">
                <select name="cms_type">
                    <option value="">请选择</option>
                    <option value="destoon" {if $data.cms_type=='destoon'}selected{/if}>destoon</option>
                    <option value="eyoucms" {if $data.cms_type=='eyoucms'}selected{/if}>eyoucms</option>
                    <option value="dedecms" {if $data.cms_type=='dedecms'}selected{/if}>dedecms</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">文章模块ID</label>
            <div class="layui-input-block">
                <input type="text" name="cms_article" lay-verify="" placeholder="" autocomplete="off" class="layui-input" value="{$data.cms_article}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">项目模块ID</label>
            <div class="layui-input-block">
                <input type="text" name="cms_project" lay-verify="" placeholder="" autocomplete="off" class="layui-input" value="{$data.cms_project}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">公司模块ID</label>
            <div class="layui-input-block">
                <input type="text" name="cms_company" lay-verify="" placeholder="" autocomplete="off" class="layui-input" value="{$data.cms_company}">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="submit" lay-submit class="layui-btn">保存</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
{/block}

